**************************************************
/* Transaction Costs and Congressional Careers: The Effect of Flight Availability on Retirement Decisions */
/* Replication Materials README */
/* Authors: Neil Malhotra and Christian Gonzalez Rojas */
/* Date Created: April 27, 2021 */
/* Last Updated: April 27, 2021 */
**************************************************

DATASETS:

flights_replication.csv: For replication of Table 1, and Online Appendix Tables OA2, OA3, OA4, OA5, OA6, OA7
flights_replication_40m.csv: For replication of Online Appendix Table OA8
flights_replication_60m.csv: For replication of Online Appendix Table OA9
flights_replication_plots.csv: For replication of Figures 1 and 2, Online Appendix Table OA1, and Online Appendix Figures OA1 and OA2

REPLICATION CODE:

flights_replication.do: Stata do-file used on flights_replication.csv, flights_replication_40m.csv, and flights_replication_60m.csv
flights_replication_plots.R: R script used on flights_replication_plots.csv

VARIABLES in flights_replication.csv, flights_replication_40m.csv, flights_replication_60m.csv:

congress: congress number
state: state abbreviation
district: district number
icpsr_number: ICPSR ID
name: legislator name
bioname: legislator name
custom_name: legislator name
candidate: legislator name
state_name: state name
year: year of election to current congress
congress_start: year congress started
first_elected: year the representative was first elected
born: year the representative was born
died: year the representative died
democrat: democrat == 1
party_code: representative party (100=democrat; 200=republican; 328=independent/other)
nokken_poole_dim_1: Nokken-Poole score (first dimension)
majority: majority party member == 1
les_score: legislative effectiveness score
les_benchmark: legislative Effectiveness Score benchmark (Fitted values of a regression of LES_it on seniority, committee_chair and chair_subcommittee)
lagged_les_score: legislative effectiveness score in previous congress
runs_next: candidate runs for reelection
seniority: seniority (number of terms)
airport.{x}: airport code
state_airp.{x}: state where the airport is located
airport_name.{x}: airport name
city_name.{x}: city where airport is located
n_origin.{x}: number of direct flights departing the airport and arriving in the DC area
dir_origin.{x}: exists a direct flight departing the airport and arriving in the DC area == 1
n_dest.{x}: number of direct flights arriving the airport and departing from the DC area
dir_dest.{x}: exists a direct flight arriving the airport and departing from the DC area == 1
id_unique: unique ID that identifies legislator
area: district land area
state_number: index of states
region_number: index of Census region_number
anysc: member had scandal during term == 1

ADDITIONAL VARIABLES in flights_replication_plots.csv:

elab_return_next: vote return in the next election (%)
elab_return_next_winner: vote return of the winner of the next election (%)
both_numairports_directflight: number of airports with direct flight (see flights_replication.do for creation)
died_office1: legislator died in office (see flights_replication.do for creation)
runs_next_appt: candidate runs for reelection (excludes cabinet appointments) (see flights_replication.do for creation)
ideology_folded: folded Nokken-Poole ideology score (see flights_replication.do for creation)
change_airport: change in number of airports (see flights_replication.do for creation)
gain_airport: legislator gained airport during term == 1 (see flights_replication.do for creation)
lost_airport: legislator lost airport during term == 1 (see flights_replication.do for creation)
inmainregression: observation in estimation sample == 1 (Table 1, column 1)
inlaggedregression: observation in estimation sample == 1 (Table 1, column 2)







































